home *** CD-ROM | disk | FTP | other *** search
- Path: fido.asd.sgi.com!austern
- From: "Eugene Radchenko" <eugene@qsar.chem.msu.su>
- Newsgroups: comp.std.c++
- Subject: Are all Windows programs ill-formed?
- Date: 29 Jan 1996 10:52:19 PST
- Organization: Lab. of Org.Synth., MSU
- Approved: austern@isolde.mti.sgi.com
- Message-ID: <AE5J83na99@qsar.chem.msu.su>
- NNTP-Posting-Host: isolde.mti.sgi.com
- X-Original-Date: Mon, 29 Jan 1996 11:26:45 +0300 (MSK)
- X-Mailer: dMail [Demos Mail for DOS v1.23]
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBVAwUBMQ0Xhky4NqrwXLNJAQFPNAH/Q8p+GPpZgJpgilN2HL0TrW5CrL1rwtIP
- UC+vTb7O2hFhDJHlEcTcsnbCHWWPG+VHX4HWGsVKWKIAt8fWCO/3Mw==
- =ZSnR
- Originator: austern@isolde.mti.sgi.com
-
- Hi!
- I have just realized that something is grossly overlooked in C++ standard.
- It requires every program to have the main() function (which implementation
- is not allowed to supply) with parameters (void) or (int argc, int*argv[]).
- However, Windows programs have another convention: prrogram must contain
- the function
- int WinMain(HINSTANCE curInst, HINSTANCE prevInst, LPSTR cmdline, int cmdShow)
- Some of this is of course quirks or even outright ignored in Win32
- (prevInst), but the full non-parsed command line could be useful sometimes,
- and not all implementations provide the function retrieving it. And anyway
- this is definitely not a main() from the specs. Maybe the requirements on
- the main() should be relaxed somehow?
-
- Best regards Genie
-
- --
- --------------------------------------------------------------------
- Eugene V. Radchenko Research associate, Computer Chemistry
- E-mail: eugene@qsar.chem.msu.su Fax: +7-(095)939-0290
- Ordinary mail: Chair of Organic Chemistry, Department of Chemistry,
- Moscow State University, 119899 Moscow, Russia
- ***************** Disappearances are deceptive *******************
- ---
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
- is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
-